/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.common.domain.DataBean;
import com.koron.purpose.bean.SuggestAdviceBean;
import org.swan.bean.MessageBean;

import java.util.List;
import java.util.Map;

public interface SuggestAdviceService {

    /**
     * 列表查询
     *
     * @param corpCode           水司code
     * @param suggestCompanyName 建言单位名称
     * @param suggestStatus      建言状态
     * @param suggestTimeStart   建言时间开始(yyyy-MM-dd)
     * @param suggestTimeStop    建言时间结束(yyyy-MM-dd)
     * @param page               当前页
     * @param pageSize           每页条数
     * @return
     */
    MessageBean<DataBean<Map>> queryForList(String corpCode, String suggestCompanyName, String suggestStatus,
                                            String suggestTimeStart, String suggestTimeStop,
                                            Integer page, Integer pageSize);

    /**
     * 根据ID查询 建言建议
     *
     * @param id
     * @return
     */
    MessageBean<SuggestAdviceBean> queryById(String id);

    /**
     * 根据ID删除建言建议
     *
     * @param id
     * @return
     */
    MessageBean deleteSuggestAdviceById(String id);

    /**
     * 新增建言建议
     *
     * @param bean
     * @param personCode 审批人code
     * @return
     */
    MessageBean insertSuggestAdvice(StaffBean user, SuggestAdviceBean bean, String personCode);

    /**
     * 修改建言建议
     *
     * @param bean
     * @param personCode 审批人code
     * @return
     */
    MessageBean updateSuggestAdvice(StaffBean user, SuggestAdviceBean bean, String personCode);

    /**
     * 建言建议列表导出
     *
     * @param user
     * @param corpCode
     * @param suggestCompanyName
     * @param suggestStatus
     * @param suggestTimeStart
     * @param suggestTimeStop
     * @return
     */
    List<Map> exportList(StaffBean user, String corpCode, String suggestCompanyName, String suggestStatus, String suggestTimeStart, String suggestTimeStop);


}
